package pay;

import java.util.Scanner;

public class Payment{

//	public static void main(String args[]) {
//		payment();
//	}
	
	public void payment(double money) {
		Scanner in = new Scanner(System.in);
		Wallet wallet = new Wallet();
		System.out.println("请输入支付类型：银行卡/零钱");
		String type = in.next();
		type += in.nextLine();
		wallet.pay(type,money);
		in.close();
	}
	
}
